package com.yanxibao.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 收藏;
 *
 * @author : http://www.chiner.pro
 * @date : 2022-9-25
 */
@Data
@ApiModel(value = "收藏", description = "")
@TableName("yxb_collection")
public class Collection implements Serializable, Cloneable {
    /**
     * 收藏号
     */
    @TableId(type = IdType.AUTO)
    private Integer collectionId;
    /**
     * 用户号
     */
    private String userId;
    /**
     * 院校专业号
     */
    private String umId;
    /**
     * 收藏时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private LocalDateTime collectionTime ;

    @TableLogic
    private Integer deleted;


}